package com.example.myapplication2;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

import com.example.myapplication2.databinding.ActivityMainBinding;

public class MainActivity extends Activity {

    private TextView mTextView;
    private ActivityMainBinding binding;
    private Button PPG;
    private Button ACC;
    private Button GRY;
    private Button MUL;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        binding = ActivityMainBinding.inflate(getLayoutInflater());
        setContentView(binding.getRoot());

        mTextView = binding.text;
        PPG=(Button) findViewById(R.id.btn_PPG);
        PPG.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                para.choose[0]=1;
                para.choose[1]=0;
                para.choose[2]=0;
                Intent intent=new Intent(MainActivity.this, action.class);
                startActivity(intent);
            }
        });
        ACC=(Button) findViewById(R.id.btn_ACC);
        ACC.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                para.choose[0]=0;
                para.choose[1]=1;
                para.choose[2]=0;

                Intent intent=new Intent(MainActivity.this, action.class);
                startActivity(intent);
            }
        });
        GRY=(Button) findViewById(R.id.btn_GRY);
        GRY.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                para.choose[0]=0;
                para.choose[1]=0;
                para.choose[2]=1;
                Intent intent=new Intent(MainActivity.this, action.class);
                startActivity(intent);
            }
        });
        MUL=(Button) findViewById(R.id.btn_MUL);
        MUL.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent=new Intent(MainActivity.this, choose.class);
                startActivity(intent);
            }
        });
    }
}